package com.example.jixeishi1.service;



import com.example.jixeishi1.entity.OrderEntity;
import com.example.jixeishi1.mapper.OrderMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 
 *
 * @author cola
 * @date 2021-11-15 22:12:57
 */
@Service
public class OrderService {
    @Resource
    OrderMapper orderMapper;

    public void saveOrder(OrderEntity order) {
        orderMapper.saveOrder(order);
    }

    public OrderEntity getOrder() {
        OrderEntity orderEntity = orderMapper.getOrder();
        return orderEntity;
    }

    public void deletOrder() {
        orderMapper.deleteOrder();
    }
}

